package controlador;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import modelo.MLiga;
import vista.VCalendario;

public class CCalendario implements ActionListener {

	private VCalendario vistaCal;

	public CCalendario(MLiga liga) {
		super();
		this.vistaCal = new VCalendario();
		this.vistaCal.setLocation(480, 220);
		this.vistaCal.setVisible(true);
		this.vistaCal.addActionListener(this);
	}

	public void actionPerformed(ActionEvent e) {
		String actionCommand = e.getActionCommand();
		if (actionCommand.equals("Salir")) {
			vistaCal.borrarDatos();
			this.vistaCal.setVisible(false);
		}

	}

}
